<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>我的待办</title>
</head>
<body>
	<table border="1">
		<tr>
			<td>任务标题</td>
			<td>任务步骤</td>
			<td>申请人</td>
			<td>到达时间</td>
			<td>操作</td>
		</tr>
		<tr th:each="task,taskStat: ${tasks}">
			<td th:text="${task.processTitle }"></td>
			<td th:text="${task.name }"></td>
			<td th:text="${task.initiator }"></td>
			<td th:text="${#dates.format(task.createTime,'yyyy-MM-dd HH:mm:ss')}"></td>
			<td>
				<a th:href="@{${task.formUrl}}" th:if="${task.needClaim }">认领</a>
				<a th:href="@{${task.formUrl}+'&taskId'+${task.taskId }}"  th:if="${!task.needClaim }">处理</a>
			</td>
		</tr>
	</table>
</body>
</html>